package com.ytjj.qmyx.admin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ChannelLabelAutoDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChannelLabelAutoDetailExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andLabelIdIsNull() {
            addCriterion("label_id is null");
            return (Criteria) this;
        }

        public Criteria andLabelIdIsNotNull() {
            addCriterion("label_id is not null");
            return (Criteria) this;
        }

        public Criteria andLabelIdEqualTo(Integer value) {
            addCriterion("label_id =", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotEqualTo(Integer value) {
            addCriterion("label_id <>", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdGreaterThan(Integer value) {
            addCriterion("label_id >", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("label_id >=", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdLessThan(Integer value) {
            addCriterion("label_id <", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdLessThanOrEqualTo(Integer value) {
            addCriterion("label_id <=", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdIn(List<Integer> values) {
            addCriterion("label_id in", values, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotIn(List<Integer> values) {
            addCriterion("label_id not in", values, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdBetween(Integer value1, Integer value2) {
            addCriterion("label_id between", value1, value2, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("label_id not between", value1, value2, "labelId");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartIsNull() {
            addCriterion("launch_date_start is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartIsNotNull() {
            addCriterion("launch_date_start is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_start =", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartNotEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_start <>", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartGreaterThan(Date value) {
            addCriterionForJDBCDate("launch_date_start >", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_start >=", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartLessThan(Date value) {
            addCriterionForJDBCDate("launch_date_start <", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_start <=", value, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartIn(List<Date> values) {
            addCriterionForJDBCDate("launch_date_start in", values, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartNotIn(List<Date> values) {
            addCriterionForJDBCDate("launch_date_start not in", values, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("launch_date_start between", value1, value2, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateStartNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("launch_date_start not between", value1, value2, "launchDateStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndIsNull() {
            addCriterion("launch_date_end is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndIsNotNull() {
            addCriterion("launch_date_end is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_end =", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndNotEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_end <>", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndGreaterThan(Date value) {
            addCriterionForJDBCDate("launch_date_end >", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_end >=", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndLessThan(Date value) {
            addCriterionForJDBCDate("launch_date_end <", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("launch_date_end <=", value, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndIn(List<Date> values) {
            addCriterionForJDBCDate("launch_date_end in", values, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndNotIn(List<Date> values) {
            addCriterionForJDBCDate("launch_date_end not in", values, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("launch_date_end between", value1, value2, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDateEndNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("launch_date_end not between", value1, value2, "launchDateEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartIsNull() {
            addCriterion("launch_day_start is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartIsNotNull() {
            addCriterion("launch_day_start is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartEqualTo(Integer value) {
            addCriterion("launch_day_start =", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartNotEqualTo(Integer value) {
            addCriterion("launch_day_start <>", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartGreaterThan(Integer value) {
            addCriterion("launch_day_start >", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartGreaterThanOrEqualTo(Integer value) {
            addCriterion("launch_day_start >=", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartLessThan(Integer value) {
            addCriterion("launch_day_start <", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartLessThanOrEqualTo(Integer value) {
            addCriterion("launch_day_start <=", value, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartIn(List<Integer> values) {
            addCriterion("launch_day_start in", values, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartNotIn(List<Integer> values) {
            addCriterion("launch_day_start not in", values, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_start between", value1, value2, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayStartNotBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_start not between", value1, value2, "launchDayStart");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndIsNull() {
            addCriterion("launch_day_end is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndIsNotNull() {
            addCriterion("launch_day_end is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndEqualTo(Integer value) {
            addCriterion("launch_day_end =", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndNotEqualTo(Integer value) {
            addCriterion("launch_day_end <>", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndGreaterThan(Integer value) {
            addCriterion("launch_day_end >", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndGreaterThanOrEqualTo(Integer value) {
            addCriterion("launch_day_end >=", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndLessThan(Integer value) {
            addCriterion("launch_day_end <", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndLessThanOrEqualTo(Integer value) {
            addCriterion("launch_day_end <=", value, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndIn(List<Integer> values) {
            addCriterion("launch_day_end in", values, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndNotIn(List<Integer> values) {
            addCriterion("launch_day_end not in", values, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_end between", value1, value2, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andLaunchDayEndNotBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_end not between", value1, value2, "launchDayEnd");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinIsNull() {
            addCriterion("buy_num_min is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinIsNotNull() {
            addCriterion("buy_num_min is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinEqualTo(Integer value) {
            addCriterion("buy_num_min =", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinNotEqualTo(Integer value) {
            addCriterion("buy_num_min <>", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinGreaterThan(Integer value) {
            addCriterion("buy_num_min >", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_num_min >=", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinLessThan(Integer value) {
            addCriterion("buy_num_min <", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinLessThanOrEqualTo(Integer value) {
            addCriterion("buy_num_min <=", value, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinIn(List<Integer> values) {
            addCriterion("buy_num_min in", values, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinNotIn(List<Integer> values) {
            addCriterion("buy_num_min not in", values, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_min between", value1, value2, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMinNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_min not between", value1, value2, "buyNumMin");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxIsNull() {
            addCriterion("buy_num_max is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxIsNotNull() {
            addCriterion("buy_num_max is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxEqualTo(Integer value) {
            addCriterion("buy_num_max =", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxNotEqualTo(Integer value) {
            addCriterion("buy_num_max <>", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxGreaterThan(Integer value) {
            addCriterion("buy_num_max >", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_num_max >=", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxLessThan(Integer value) {
            addCriterion("buy_num_max <", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxLessThanOrEqualTo(Integer value) {
            addCriterion("buy_num_max <=", value, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxIn(List<Integer> values) {
            addCriterion("buy_num_max in", values, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxNotIn(List<Integer> values) {
            addCriterion("buy_num_max not in", values, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_max between", value1, value2, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andBuyNumMaxNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_max not between", value1, value2, "buyNumMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMinIsNull() {
            addCriterion("product_stock_min is null");
            return (Criteria) this;
        }

        public Criteria andProductStockMinIsNotNull() {
            addCriterion("product_stock_min is not null");
            return (Criteria) this;
        }

        public Criteria andProductStockMinEqualTo(Integer value) {
            addCriterion("product_stock_min =", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinNotEqualTo(Integer value) {
            addCriterion("product_stock_min <>", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinGreaterThan(Integer value) {
            addCriterion("product_stock_min >", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_stock_min >=", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinLessThan(Integer value) {
            addCriterion("product_stock_min <", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinLessThanOrEqualTo(Integer value) {
            addCriterion("product_stock_min <=", value, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinIn(List<Integer> values) {
            addCriterion("product_stock_min in", values, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinNotIn(List<Integer> values) {
            addCriterion("product_stock_min not in", values, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_min between", value1, value2, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMinNotBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_min not between", value1, value2, "productStockMin");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxIsNull() {
            addCriterion("product_stock_max is null");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxIsNotNull() {
            addCriterion("product_stock_max is not null");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxEqualTo(Integer value) {
            addCriterion("product_stock_max =", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxNotEqualTo(Integer value) {
            addCriterion("product_stock_max <>", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxGreaterThan(Integer value) {
            addCriterion("product_stock_max >", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_stock_max >=", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxLessThan(Integer value) {
            addCriterion("product_stock_max <", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxLessThanOrEqualTo(Integer value) {
            addCriterion("product_stock_max <=", value, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxIn(List<Integer> values) {
            addCriterion("product_stock_max in", values, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxNotIn(List<Integer> values) {
            addCriterion("product_stock_max not in", values, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_max between", value1, value2, "productStockMax");
            return (Criteria) this;
        }

        public Criteria andProductStockMaxNotBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_max not between", value1, value2, "productStockMax");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}